<?php
include_once 'url.conf.php';

function genGallery($rid)
{
    global $upload;

    $path = $upload . "images/rest/full/" . $rid . "/";
    $scan = scandir($path);
    
    echo count($scan);

    for ($i = 1; $i < count($scan); $i++) {

        if ($scan[$i] != '.' && $scan[$i] != '..') {
                echo $scan[$i] . "<br />";
                echo '<li><a href=""><img src="core/function.rest.image.php?mode=full&rid=' . $rid . '&name=' . $scan[$i] . '" alt="" /></a></li>';
        }
    }

}

?>